<template>
  <main class="cost-card" :style="{backgroundColor:this.bgColor}">
    <div class="name">红卡科室</div>
    <div class="value">0</div>
  </main>
</template>

<script lang="js">
export default {
  props: {
    bgColor: {
      type: String,
      default: "#FF3E3A"
    }
  }
}
</script>

<style scoped lang="stylus">
.cost-card {
  border-radius: 8px;
  width 250px
  height 60px
  padding 23px 20px
  display flex
  align-items center
  justify-content space-between

  .name {
    font-size: 14px;
    color: #484D78;
    font-weight bold
    line-height: 14px;
  }

  .value {
    font-size: 32px;
    color: #FFFFFF;
    text-align: right;
    line-height: 32px;
  }
}
</style>
